<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>LibCDS: PriorityQueue Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">LibCDS
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('structPriorityQueue.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">PriorityQueue Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The implementation for priority queue.  
 <a href="structPriorityQueue.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:afd272fec6386bc5f651684bf237d6da3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="priority__queue_8h.html#a53f2138b48d673da264d18fd51402c42">PriorityQueueData</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPriorityQueue.html#afd272fec6386bc5f651684bf237d6da3">pData</a></td></tr>
<tr class="memdesc:afd272fec6386bc5f651684bf237d6da3"><td class="mdescLeft">&#160;</td><td class="mdescRight">The container private information.  <a href="#afd272fec6386bc5f651684bf237d6da3">More...</a><br/></td></tr>
<tr class="separator:afd272fec6386bc5f651684bf237d6da3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04db2ceba01251594c35ca14b2afd405"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPriorityQueue.html#a04db2ceba01251594c35ca14b2afd405">push</a> )(struct _PriorityQueue *, Item)</td></tr>
<tr class="memdesc:a04db2ceba01251594c35ca14b2afd405"><td class="mdescLeft">&#160;</td><td class="mdescRight">Push an item onto the queue.  <a href="#a04db2ceba01251594c35ca14b2afd405">More...</a><br/></td></tr>
<tr class="separator:a04db2ceba01251594c35ca14b2afd405"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca7e696c84b86d179edaf61fd6ae83fb"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPriorityQueue.html#aca7e696c84b86d179edaf61fd6ae83fb">top</a> )(struct _PriorityQueue *, Item *)</td></tr>
<tr class="memdesc:aca7e696c84b86d179edaf61fd6ae83fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve item from top of the queue.  <a href="#aca7e696c84b86d179edaf61fd6ae83fb">More...</a><br/></td></tr>
<tr class="separator:aca7e696c84b86d179edaf61fd6ae83fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88bec7993cc68b9f9b094902721560dd"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPriorityQueue.html#a88bec7993cc68b9f9b094902721560dd">pop</a> )(struct _PriorityQueue *)</td></tr>
<tr class="memdesc:a88bec7993cc68b9f9b094902721560dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Delete item from top of the queue.  <a href="#a88bec7993cc68b9f9b094902721560dd">More...</a><br/></td></tr>
<tr class="separator:a88bec7993cc68b9f9b094902721560dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae20d79342b5860b9f0d95362f43e912c"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPriorityQueue.html#ae20d79342b5860b9f0d95362f43e912c">size</a> )(struct _PriorityQueue *)</td></tr>
<tr class="memdesc:ae20d79342b5860b9f0d95362f43e912c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the number of stored items.  <a href="#ae20d79342b5860b9f0d95362f43e912c">More...</a><br/></td></tr>
<tr class="separator:ae20d79342b5860b9f0d95362f43e912c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a097d0a7381d7d5a00be4c86c5f839a8f"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPriorityQueue.html#a097d0a7381d7d5a00be4c86c5f839a8f">set_compare</a> )(struct _PriorityQueue *, int32_t(*)(Item, Item))</td></tr>
<tr class="memdesc:a097d0a7381d7d5a00be4c86c5f839a8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the custom item comparison method.  <a href="#a097d0a7381d7d5a00be4c86c5f839a8f">More...</a><br/></td></tr>
<tr class="separator:a097d0a7381d7d5a00be4c86c5f839a8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81effde18394f8983d41aba55ca4ecbd"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPriorityQueue.html#a81effde18394f8983d41aba55ca4ecbd">set_destroy</a> )(struct _PriorityQueue *, void(*)(Item))</td></tr>
<tr class="memdesc:a81effde18394f8983d41aba55ca4ecbd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the custom item resource clean method.  <a href="#a81effde18394f8983d41aba55ca4ecbd">More...</a><br/></td></tr>
<tr class="separator:a81effde18394f8983d41aba55ca4ecbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The implementation for priority queue. </p>

<p>Definition at line <a class="el" href="priority__queue_8h_source.html#l00014">14</a> of file <a class="el" href="priority__queue_8h_source.html">priority_queue.h</a>.</p>
</div><h2 class="groupheader">Field Documentation</h2>
<a class="anchor" id="afd272fec6386bc5f651684bf237d6da3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="priority__queue_8h.html#a53f2138b48d673da264d18fd51402c42">PriorityQueueData</a>* PriorityQueue::pData</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The container private information. </p>

<p>Definition at line <a class="el" href="priority__queue_8h_source.html#l00016">16</a> of file <a class="el" href="priority__queue_8h_source.html">priority_queue.h</a>.</p>

</div>
</div>
<a class="anchor" id="a04db2ceba01251594c35ca14b2afd405"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* PriorityQueue::push)(struct _PriorityQueue *, Item)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Push an item onto the queue. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="priority__queue_8h.html#a7aefd19c4559cdd822745d839684b494" title="Push an item onto the queue. ">PriorityQueuePush</a> </dd></dl>

<p>Definition at line <a class="el" href="priority__queue_8h_source.html#l00020">20</a> of file <a class="el" href="priority__queue_8h_source.html">priority_queue.h</a>.</p>

</div>
</div>
<a class="anchor" id="aca7e696c84b86d179edaf61fd6ae83fb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* PriorityQueue::top)(struct _PriorityQueue *, Item *)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieve item from top of the queue. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="priority__queue_8h.html#afc37a32ca097ba94e6a185cb9c64f85a" title="Retrieve item from top of the queue. ">PriorityQueueTop</a> </dd></dl>

<p>Definition at line <a class="el" href="priority__queue_8h_source.html#l00024">24</a> of file <a class="el" href="priority__queue_8h_source.html">priority_queue.h</a>.</p>

</div>
</div>
<a class="anchor" id="a88bec7993cc68b9f9b094902721560dd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* PriorityQueue::pop)(struct _PriorityQueue *)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Delete item from top of the queue. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="priority__queue_8h.html#a2f17645f81207b3732fac992b622bcc8" title="Delete item from top of the queue. ">PriorityQueuePop</a> </dd></dl>

<p>Definition at line <a class="el" href="priority__queue_8h_source.html#l00028">28</a> of file <a class="el" href="priority__queue_8h_source.html">priority_queue.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae20d79342b5860b9f0d95362f43e912c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* PriorityQueue::size)(struct _PriorityQueue *)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the number of stored items. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="priority__queue_8h.html#ae02471464c82b3815f957ead9456b410" title="Return the number of stored items. ">PriorityQueueSize</a> </dd></dl>

<p>Definition at line <a class="el" href="priority__queue_8h_source.html#l00032">32</a> of file <a class="el" href="priority__queue_8h_source.html">priority_queue.h</a>.</p>

</div>
</div>
<a class="anchor" id="a097d0a7381d7d5a00be4c86c5f839a8f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* PriorityQueue::set_compare)(struct _PriorityQueue *, int32_t(*)(Item, Item))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the custom item comparison method. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="priority__queue_8h.html#a6661f06cfaf73e1a6249deafd4087bd6" title="Set the custom item comparison method. ">PriorityQueueSetCompare</a> </dd></dl>

<p>Definition at line <a class="el" href="priority__queue_8h_source.html#l00036">36</a> of file <a class="el" href="priority__queue_8h_source.html">priority_queue.h</a>.</p>

</div>
</div>
<a class="anchor" id="a81effde18394f8983d41aba55ca4ecbd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* PriorityQueue::set_destroy)(struct _PriorityQueue *, void(*)(Item))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the custom item resource clean method. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="priority__queue_8h.html#aeef557efdaca187f8ed58cbd3e01703a" title="Set the custom item resource clean method. ">PriorityQueueSetDestroy</a> </dd></dl>

<p>Definition at line <a class="el" href="priority__queue_8h_source.html#l00040">40</a> of file <a class="el" href="priority__queue_8h_source.html">priority_queue.h</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="structPriorityQueue.html">PriorityQueue</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
